//
//  UILabel+XSAddition.m
//  WB
//
//  Created by Cedar on 16/10/17.
//  Copyright © 2016年 Cedar. All rights reserved.
//

#import "UILabel+XSAddition.h"

@implementation UILabel (XSAddition)

+ (instancetype)xs_labelWithText:(NSString *)text fontSize:(CGFloat)fontSize color:(UIColor *)color {
    UILabel *label = [[self alloc] init];
    
    label.text = text;
    label.font = [UIFont systemFontOfSize:fontSize];
    label.textColor = color;
    label.numberOfLines = 0;
    
    [label sizeToFit];
    
    return label;
}
    
@end
